<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no" />
    <title>商家</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/common.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <style>
        .aui-bar-nav{
            background-color: white;
            color: black;
        }
    </style>
</head>
<body>
<header class="aui-bar aui-bar-nav">
    <div class="aui-pull-left aui-iconfont aui-icon-left icon-left-coler" tapmode onclick="closeWin()"></div>
    <div class="aui-title">
        ---
    </div>
</header>
<footer class="aui-nav "  >
    <div class="myBtn "><a style="color:#fff"  href="tel:1871839556" class="phone">联系卖家</a></div>
</footer>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/jquery.min.js"></script>
<script type="text/javascript">
    var supplierId="";
    apiready = function() {
        api.parseTapmode();
        supplierId=api.pageParam.supplierId;
        var header = $api.dom('header');
        $api.fixIos7Bar(header);
        var footer = $api.dom('footer');
        var header_h = $api.offset(header).h;
        var footer_h = $api.offset(footer).h;
        var body_h = $api.offset($api.dom('body')).h - header_h-footer_h;
        api.openFrame({
            name : 'shopInfo_frm',
            url : 'shopInfo_frm.html',
            rect : {
                x : 0,
                y : header_h,
                w : 'auto',
                h : body_h
            },
            pageParam:{
                supplierId:supplierId
            },
            bounces : true,
            vScrollBarEnabled : false,
            hScrollBarEnabled : false
        });
        api.addEventListener({
            name:"showSupplierName",
        },function (ret,err) {
            if(ret&&ret.value){
                $(".aui-title").text(ret.value.supplierName)
            }
        })
    }
    function addSupplierPhone(phoneNo){
        $(".phone").attr("href","tel:"+phoneNo)
    }
</script>
</html>
